package com.demo.sys.entity.req;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 小程序用户合作信息
 */
@Data
@ApiModel
public class RequestUserCooperationAddEntity {


    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @NotBlank(message = "地址不能为空")
    @ApiModelProperty(value = "地址", required = true)
    private String address;

    @Pattern(regexp = "^1[0-9]{10}$", message = "电话格式错误")
    @NotBlank(message = "电话不能为空")
    @ApiModelProperty(value = "电话", required = true)
    private String phone;

    @NotBlank(message = "加盟类型(行业入驻)uuid不能为空")
    @ApiModelProperty(value = "加盟类型(行业入驻)uuid", required = true)
    private String franchiseTypeUuid;

    @Pattern(regexp = "^(\\d{4}-\\d{2}-\\d{2})$", message = "入驻时间格式错误")
    @NotBlank(message = "入驻时间不能为空")
    @ApiModelProperty(value = "入驻时间(年-月-日 2021-09-11)", required = true)
    private String settlementDate;

    @ApiModelProperty(value = "用户id", hidden = true)
    private String userId;

    @ApiModelProperty(value = "加盟商id", hidden = true)
    private String franchiseeId;
}
